8d28a6a02cca57943f1c99e7db362dad2f821cbb,core/kernel/traceinfo/solutions/jetbrains.mps.debug.api.info/source_gen/jetbrains/mps/traceInfo/DebugInfo.java,DebugInfo,getVarForLine,#String#number#SModel#String#,177
Before Change
}
public SNode getVarForLine(String file, int line, SModel model, String varName) {
List<ScopePositionInfo> resultList = ListSequence.fromList(new ArrayList<ScopePositionInfo>());
for (ScopePositionInfo element : Sequence.fromIterable(MapSequence.fromMap(myRoots).values()).<ScopePositionInfo>translate(new ITranslator2<DebugInfoRoot, ScopePositionInfo>() {
public Iterable<ScopePositionInfo> translate(DebugInfoRoot it) {
return it.getScopePositions();
}
})) {
if (eq_exfyrk_a0a0a0b0j(element.getFileName(), file) && element.getStartLine() <= line && line <= element.getEndLine()) {
ListSequence.fromList(resultList).addElement(element);
}
}
if (ListSequence.fromList(resultList).isEmpty()) {
After Change
}
@Nullable
public SNode getVarForLine(String file, int line, SModel model, String varName) {
List<ScopePositionInfo> resultList = getInfoForPosition(file, line, new _FunctionTypes._return_P1_E0<Set<ScopePositionInfo>, DebugInfoRoot>() {
public Set<ScopePositionInfo> invoke(DebugInfoRoot root) {
return root.getScopePositions();
}
});
if (ListSequence.fromList(resultList).isEmpty()) {
return null;
}